<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>盛世机电</title>
    <link href="/common/css/common-ui-cool.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="/css/system/dataRecording.css" />
    <script>
        if(localStorage.getItem("token")==null){
            window.history.replaceState(null, "", '/login.html');
            location.reload()
        }
    </script>
</head>

<body>
    <div class="page-container">
        <div class="header-container">
            <img class="logo-img" src="/images/logo.png">
            <ul class="top-menu">
        
            </ul>
            <div class="headerTime">
                <span class="dateText"></span>
                <span class="timeText"></span>
            </div>
            <div class="userInfo">
                <i class="aidicon aidicon-account-circle"></i>
                <span class="name"></span>
                <span class="logout">退出</span>
            </div>
        </div>
        <div class="main-container">
            <ul class="side-menu"></ul>
            <div class="table-container">
                <div class="select-wrap">
                    <div class="form-group">
                        <button type="button" class="btn btn-primary" id="addData">新增</button>
                    </div>
                    <div class="form-group">
                        <span class="label-text">时间段选择：</span>
                        <div class="layout-date" style="width: 200px;display: inline-block;">
                            <input type="text" id="beginTime" class="form-control inline-block" placeholder="请选择"
                                autocomplete="off" />
                            <i class="aidicon aidicon-calendar layout-icon-1"></i>
                        </div>
                        &ensp;-&ensp;
                        <div class="layout-date" style="width: 200px;display: inline-block;">
                            <input type="text" id="endTime" class="form-control inline-block" placeholder="请选择"
                                autocomplete="off" />
                            <i class="aidicon aidicon-calendar layout-icon-2"></i>
                        </div>
                    </div>
                    <div class="form-group">
                        <span class="label-text">点位名称：</span>
                        <div class="layout-date" style="width: 200px;display: inline-block;">
                            <select class="form-control" name="deviceId" id="deviceId"></select>
                            <!-- <input type="text" id="optUser" class="form-control inline-block" placeholder="请输入"
                                autocomplete="off" /> -->
                        </div>
                    </div>
                    <div class="form-group">
                        <button type="button" class="btn btn-default" id="searchBtn">搜索</button>
                    </div>
                    <div class="form-group">
                        <button type="button" class="btn btn-default" id="exportTable">导出报表</button>
                    </div>
                </div>
                <div class="table-wrap">
                    <table id="standard_table" class="display datatable-xLarge" cellspacing="0" width="100%"
                        style="table-layout: fixed;">
                    </table>
                </div>
            </div>
        </div>
    </div>
    <script id="dataFormTpl" type="text/html">
        <input type="hidden" id="id" value="{{id}}"/>
        <div class="form-horizon">
            <form class="form-validate-dom">
                <div class="form-group clearfix">
                    <label class="form-label" for="name">选择设备：</label>
                    <select class="form-control" name="name" id="name" {{if id}}disabled="disabled"{{/if}}></select>
                </div>
                <div class="form-group clearfix">
                    <label class="form-label" for="time">采集时间：</label>
                    <div class="form-group">
                        <input type="text" class="form-control" id="time" name="time" placeholder="请选择" autocomplete="off" value="{{time}}">
                        <span class="aidicon aidicon-calendar dateicon icon1"></span>
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="form-label" for="data1">原有数据：</label>
                    <div class="form-group">
                        <input type="text" {{if id}}disabled="disabled"{{/if}} class="form-control" id="data1" name="date1" placeholder="请输入" autocomplete="off" value="{{data1}}">
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="form-label" for="data2">补录数据：</label>
                    <div class="form-group">
                        <input type="text" class="form-control" id="data2" name="data2" placeholder="请输入" autocomplete="off" value="{{data2}}">
                    </div> 
                </div>
            </form> 
        </div>
    </script>

    <script src="/common/js/lib/require/require.min.js"></script>
    <script>
        require(["/js/require.config.js"], function () {
            require(["/js/common/nav.js"],function(){
                require(["/js/system/dataRecording.js"], function (app) {
                    app.init();
                });
            });
        });
    </script>
</body>

</html>